<?php
header("Content-type: text/html; charset=utf-8");
session_start();
error_reporting(0);
define('DDROOT', dirname(dirname(__FILE__)) . '/');
include (DDROOT . 'comm/config.php');
include (DDROOT . 'comm/duoduo.php');
include (DDROOT . 'comm/tuan.php');
include (DDROOT . 'comm/checkpostandget.php');

/*if (function_exists("set_time_limit") == TRUE && ini_get("safe_mode") == 0){
	set_time_limit(300);
}*/

$duoduo = new tuan($dbserver, $dbuser, $dbpass, $dbname, $BIAOTOU);
$sql = "select * from " . $duoduo->BIAOTOU . "setting";
$query = $duoduo->query($sql);
while ($row = $duoduo->fetch_array($query)) {
	if ($row['constant'] == 1) {
		define($row['var'], $row['val']);
	} else {
		$$row['var'] = $row['val'];
	}
}
?>